package Student;

/**
 * @description: 英语系
 * @author: rock
 * @create:
 **/
public class English extends Student {
    private double speekGrade;
    private double midGrade;
    private double endGrade;

    public English(int xuehao,  String sex, int age, String name, float speekGrade, float midGrade, float endGrade) {
        super(xuehao, age, name, sex);
        this.speekGrade = speekGrade;
        this.midGrade = midGrade;
        this.endGrade = endGrade;
    }

    public English() {
    }

    public double getGrade(){
        return speekGrade*0.5+midGrade*0.25+endGrade*0.25;

    }



}
